package com.mvity.framework.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.mvity.framework.common.base.BaseEntity;
import com.mvity.framework.common.global.IParent;

/**
 * 用户组信息表
 * 
 * @author vity
 * @date 2012-5-10
 * @mail vity.1215@gmail.com
 */
@Entity
@Table(name = "system_group")
public class SystemGroup extends BaseEntity implements IParent {

	private static final long serialVersionUID = -64077746519700063L;

	/**
	 * 用户组名称
	 */
	@Column(name = "group_name", length = 100, nullable = false)
	private String groupName;

	/**
	 * 用户组说明
	 */
	@Column(name = "group_desc", length = 1000)
	private String groupDesc;

	/**
	 * 父级用户组ID
	 */
	@Column(name = "parent_id", length = 32)
	private String parentId;

	/**
	 * 是否系统内置
	 */
	@Column(name = "is_system", length = 10, nullable = false)
	private String isSystem;

	/**
	 * 返回 groupName 的值
	 * 
	 * @return groupName
	 */
	public String getGroupName() {
		return groupName;
	}

	/**
	 * 设置 groupName 的值
	 * 
	 * @param groupName
	 */
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	/**
	 * 返回 groupDesc 的值
	 * 
	 * @return groupDesc
	 */
	public String getGroupDesc() {
		return groupDesc;
	}

	/**
	 * 设置 groupDesc 的值
	 * 
	 * @param groupDesc
	 */
	public void setGroupDesc(String groupDesc) {
		this.groupDesc = groupDesc;
	}

	/**
	 * @return the parentId
	 */
	@Override
	public String getParentId() {
		return parentId;
	}

	/**
	 * @param parentId
	 *            the parentId to set
	 */
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	/**
	 * 返回 isSystem 的值
	 * 
	 * @return isSystem
	 */
	public String getIsSystem() {
		return isSystem;
	}

	/**
	 * 设置 isSystem 的值
	 * 
	 * @param isSystem
	 */
	public void setIsSystem(String isSystem) {
		this.isSystem = isSystem;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.mvity.framework.common.base.IParent#getEntityType()
	 */
	@Override
	public String getEntityType() {
		return "GROUP";
	}

}
